package com.hikvision.tcm.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author :jianghui
 * @date : 2022/10/30 14:24
 */

/**
 * openFeignClient写在消费者中,调用远程消费者的controller
 * @author jianghui
 * name:指定调用的rest接口对应的服务名
 * path:对应controller上的requestMapping
 * */
@FeignClient(name = "tcm-core",path = "/core")
public interface TestWebFeign {

    /**
     * @author :jianghui
     * @date : 2022/10/31 14:24
     * 声明需要调用的消费者的rest接口对应的方法
     */
    @GetMapping("receive")
    String receive() ;
}
